package com.wrs.project.androiddemo

import android.Manifest
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.Button
import androidx.activity.ComponentActivity



//import com.wrs.project.module.face.custom.FaceEngine

class MainActivity : ComponentActivity() {
    // 通过startActivityForResult方式拉起授权流程界面的请求码，具体数值开发者可以自行定义
    val tag = "MainActivity======="


    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.layout_main)
findViewById<Button>(R.id.btn).setOnClickListener {
    toWebrtc()
}
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
            requestPermissions(
                arrayOf<String>(
                    Manifest.permission.CAMERA,
                    Manifest.permission.RECORD_AUDIO
                ), 100
            )
        }


    }
    fun toWebrtc() {
        val intent = Intent(this, MultipleDemoActivity::class.java)
        startActivity(intent)
    }


}

